package com.wjb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wjb.pojo.entity.Orderx;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Date;

/**
 * @author : 王济彬
 * @date: 2025/5/24 - 05 - 24 - 17:25
 * @Description: com.wjb.mapper
 * @version: 1.0
 */
@Mapper
public interface OrderServiceMapper extends BaseMapper<Orderx> {

    @Insert("insert into orderx (order_id, order_name, order_create_time, order_create_name,product_id) VALUES (#{orderId}, #{orderName}, #{orderCreateTime}, #{orderCreateName},#{productId})")
    public boolean createOrder(String orderId, String orderName, Date orderCreateTime, String orderCreateName, int productId);
}
